const express = require('express')
const login_handle = require('../router_handle/login.js')
const expressJoi = require("@escook/express-joi")
const { resgister_limit, login_limit } = require("../limit/login.js")

const router = express.Router();

router.post('/register', expressJoi(resgister_limit), login_handle.register)

router.post('/login', expressJoi(login_limit), login_handle.login)

router.post('/changePassword', login_handle.changePassword)

router.post('/update', login_handle.update)

module.exports = router